<!--
  This file is a part of the open-eBackup project.
  This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
  If a copy of the MPL was not distributed with this file, You can obtain one at
  http://mozilla.org/MPL/2.0/.
  
  Copyright (c) [2024] Huawei Technologies Co.,Ltd.
  
  THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
  EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
  MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
  -->


<!DOCTYPE html
  PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="zh-cn" xml:lang="zh-cn">
<head>
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
   
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="DC.Type" content="topic">
<meta name="DC.Title" content="恢复单机/可用性组">
<meta name="product" content="">
<meta name="DC.Relation" scheme="URI" content="exchange_0061.html">
<meta name="prodname" content="">
<meta name="version" content="">
<meta name="brand" content="30-OceanProtect 备份一体机 1.5.0-1.6.0 帮助中心">
<meta name="DC.Publisher" content="20240320">
<meta name="prodname" content="csbs">
<meta name="documenttype" content="usermanual">
<meta name="DC.Format" content="XHTML">
<meta name="DC.Identifier" content="exchange_0067">
<meta name="DC.Language" content="zh-cn">
<link rel="stylesheet" type="text/css" href="public_sys-resources/commonltr.css">
<title>恢复单机/可用性组</title>
</head>
<body style="clear:both; padding-left:10px; padding-top:5px; padding-right:5px; padding-bottom:5px"><a name="exchange_0067"></a><a name="exchange_0067"></a>

<h1 class="topictitle1">恢复单机/可用性组</h1>
<div><p>当需要对已备份的单机或可用性组进行恢复时，可以参考本节使用副本恢复单机/可用性组的数据库至原位置或新位置。</p>
<div class="section" id="exchange_0067__section10748132113363"><h4 class="sectiontitle">前提条件</h4><ul id="exchange_0067__ul698511719473"><li id="exchange_0067__li198944918478">执行恢复前，请确保Exchange Server服务和相关的依赖服务正常运行。对应服务可参考<a href="https://learn.microsoft.com/zh-cn/exchange/plan-and-deploy/deployment-ref/services-overview" target="_blank" rel="noopener noreferrer">Exchange 服务器上的 Exchange 服务概述</a>。</li><li id="exchange_0067__exchange_0036_li42661234120">执行恢复前，请确保<span id="exchange_0067__text3709153812404">OceanProtect</span>系统时间与客户端时间保持一致，否则可能导致日志恢复后数据丢失。</li></ul>
</div>
<div class="section"><h4 class="sectiontitle">注意事项</h4><ul><li>恢复至原位置或新位置时，请确保目标位置空间足够，否则会恢复失败。</li><li>恢复前需要对待恢复的数据库进行卸载（支持人工或系统自动卸载）。</li><li>对于单机/可用性组的日志恢复，不支持选择数据库进行恢复。</li></ul>
</div>
<div class="section"><h4 class="sectiontitle">操作步骤</h4><ol><li><span>选择<span class="uicontrol" id="exchange_0067__zh-cn_topic_0000001839142377_uicontrol201131546165412">“<span id="exchange_0067__zh-cn_topic_0000001839142377_text4113184695420">数据利用</span> &gt; <span id="exchange_0067__zh-cn_topic_0000001839142377_text1311384665413">副本数据</span> &gt; <span id="exchange_0067__zh-cn_topic_0000001839142377_text843804914500">应用</span> &gt; <span id="exchange_0067__zh-cn_topic_0000001839142377_text1781814011566">Exchange</span>”</span>。</span></li><li><span>支持以单机资源维度或以副本维度查找副本，本节以单机资源维度为例进行说明。</span><p><p>在“资源”页签，根据单机名称查找到需要恢复的单机，并单击对应的单机名称。</p>
</p></li><li><span>依次选择年、月、天找到副本。</span><p><p>当时间上显示<span><img src="zh-cn_image_0000001876636617.png"></span>，即表示该月、该天存在副本。</p>
</p></li><li><span>在副本所在行，单击<span class="uicontrol">“更多 &gt; 恢复”</span>。</span><p><ul><li>恢复单机/可用性组至原位置。<p>相关参数说明如<a href="#exchange_0067__table16163143516351">表1</a>所示。</p>

<div class="tablenoborder"><a name="exchange_0067__table16163143516351"></a><a name="table16163143516351"></a><table cellpadding="4" cellspacing="0" summary="" id="exchange_0067__table16163143516351" frame="border" border="1" rules="all"><caption><b>表1 </b>恢复Exchange单机/可用性组至原位置</caption><colgroup><col style="width:32.53%"><col style="width:67.47%"></colgroup><thead align="left"><tr><th align="left" class="cellrowborder" valign="top" width="32.53%" id="mcps1.3.4.2.4.2.1.1.2.2.3.1.1"><p>参数</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="67.47%" id="mcps1.3.4.2.4.2.1.1.2.2.3.1.2"><p>说明</p>
</th>
</tr>
</thead>
<tbody><tr><td class="cellrowborder" valign="top" width="32.53%" headers="mcps1.3.4.2.4.2.1.1.2.2.3.1.1 "><p>单机/可用性组</p>
</td>
<td class="cellrowborder" valign="top" width="67.47%" headers="mcps1.3.4.2.4.2.1.1.2.2.3.1.2 "><p>选择恢复的目标主机或可用性组。原位置恢复该参数不可修改。</p>
</td>
</tr>
<tr><td class="cellrowborder" valign="top" width="32.53%" headers="mcps1.3.4.2.4.2.1.1.2.2.3.1.1 "><p>恢复前自动卸除数据库</p>
</td>
<td class="cellrowborder" valign="top" width="67.47%" headers="mcps1.3.4.2.4.2.1.1.2.2.3.1.2 "><div class="p" id="exchange_0067__p0863145916254">开启该开关，恢复前会自动卸除目标数据库，此时目标数据库将无法使用。<div class="note" id="exchange_0067__note55671514165919"><span class="notetitle"> 说明： </span><div class="notebody"><p id="exchange_0067__p142261721229">关闭该开关，当目标数据库处于装入状态时，将会导致恢复失败。</p>
</div></div>
</div>
</td>
</tr>
<tr><td class="cellrowborder" valign="top" width="32.53%" headers="mcps1.3.4.2.4.2.1.1.2.2.3.1.1 "><p>恢复后自动装入数据库</p>
</td>
<td class="cellrowborder" valign="top" width="67.47%" headers="mcps1.3.4.2.4.2.1.1.2.2.3.1.2 "><p id="exchange_0067__p156421171488">恢复完成后，目标数据库将处于卸除状态。开启该开关后，会自动装入目标数据库。</p>
</td>
</tr>
<tr><td class="cellrowborder" valign="top" width="32.53%" headers="mcps1.3.4.2.4.2.1.1.2.2.3.1.1 "><p>数据库名称前缀</p>
</td>
<td class="cellrowborder" valign="top" width="67.47%" headers="mcps1.3.4.2.4.2.1.1.2.2.3.1.2 "><p id="exchange_0067__p1775840204417"><span style="color:#282B33;">恢复后数据库名称的前缀。数据库名称前缀和数据库名称后缀参数设置后，恢复后数据库名称格式为：</span><em style="color:#282B33;" id="exchange_0067__i7466202720495">前缀_待恢复数据库名称_后缀</em><span style="color:#282B33;">。</span></p>
</td>
</tr>
<tr><td class="cellrowborder" valign="top" width="32.53%" headers="mcps1.3.4.2.4.2.1.1.2.2.3.1.1 "><p>数据库名称后缀</p>
</td>
<td class="cellrowborder" valign="top" width="67.47%" headers="mcps1.3.4.2.4.2.1.1.2.2.3.1.2 "><p id="exchange_0067__p114113416560"><span style="color:#282B33;">恢复后数据库名称的后缀。数据库名称前缀和数据库名称后缀参数设置后，恢复后数据库名称格式为：</span><em style="color:#282B33;" id="exchange_0067__i238292417491">前缀_待恢复数据库名称_后缀</em><span style="color:#282B33;">。</span></p>
</td>
</tr>
</tbody>
</table>
</div>
</li><li>恢复单机/可用性组至新位置。<p>相关参数说明如<a href="#exchange_0067__zh-cn_topic_0000001263936798_table93951625101715">表2</a>所示。</p>

<div class="tablenoborder"><a name="exchange_0067__zh-cn_topic_0000001263936798_table93951625101715"></a><a name="zh-cn_topic_0000001263936798_table93951625101715"></a><table cellpadding="4" cellspacing="0" summary="" id="exchange_0067__zh-cn_topic_0000001263936798_table93951625101715" frame="border" border="1" rules="all"><caption><b>表2 </b>恢复Exchange单机/可用性组至新位置</caption><colgroup><col style="width:32.53%"><col style="width:67.47%"></colgroup><thead align="left"><tr><th align="left" class="cellrowborder" valign="top" width="32.53%" id="mcps1.3.4.2.4.2.1.2.2.2.3.1.1"><p>参数</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="67.47%" id="mcps1.3.4.2.4.2.1.2.2.2.3.1.2"><p>说明</p>
</th>
</tr>
</thead>
<tbody><tr><td class="cellrowborder" valign="top" width="32.53%" headers="mcps1.3.4.2.4.2.1.2.2.2.3.1.1 "><p>单机/可用性组</p>
</td>
<td class="cellrowborder" valign="top" width="67.47%" headers="mcps1.3.4.2.4.2.1.2.2.2.3.1.2 "><p>选择恢复的目标主机或可用性组。</p>
</td>
</tr>
<tr><td class="cellrowborder" valign="top" width="32.53%" headers="mcps1.3.4.2.4.2.1.2.2.2.3.1.1 "><p>数据库文件路径</p>
</td>
<td class="cellrowborder" valign="top" width="67.47%" headers="mcps1.3.4.2.4.2.1.2.2.2.3.1.2 "><p><span style="color:#282B33;">指定恢复目标数据库“.edb”文件所在目录的绝对路径，路径中的盘符必须存在。</span></p>
</td>
</tr>
<tr><td class="cellrowborder" valign="top" width="32.53%" headers="mcps1.3.4.2.4.2.1.2.2.2.3.1.1 "><p>日志文件路径</p>
</td>
<td class="cellrowborder" valign="top" width="67.47%" headers="mcps1.3.4.2.4.2.1.2.2.2.3.1.2 "><p><span style="color:#282B33;">指定恢复目标数据库“.log”文件所在目录的绝对路径，路径中的盘符必须存在。</span></p>
</td>
</tr>
<tr><td class="cellrowborder" valign="top" width="32.53%" headers="mcps1.3.4.2.4.2.1.2.2.2.3.1.1 "><p>恢复前自动卸除数据库</p>
</td>
<td class="cellrowborder" valign="top" width="67.47%" headers="mcps1.3.4.2.4.2.1.2.2.2.3.1.2 "><div class="p">开启该开关，恢复前会自动卸除目标数据库，此时目标数据库将无法使用。<div class="note" id="exchange_0067__exchange_0067_note55671514165919"><span class="notetitle"> 说明： </span><div class="notebody"><p id="exchange_0067__exchange_0067_p142261721229">关闭该开关，当目标数据库处于装入状态时，将会导致恢复失败。</p>
</div></div>
</div>
</td>
</tr>
<tr><td class="cellrowborder" valign="top" width="32.53%" headers="mcps1.3.4.2.4.2.1.2.2.2.3.1.1 "><p>恢复后自动装入数据库</p>
</td>
<td class="cellrowborder" valign="top" width="67.47%" headers="mcps1.3.4.2.4.2.1.2.2.2.3.1.2 "><p>恢复完成后，目标数据库将处于卸除状态。开启该开关后，会自动装入目标数据库。</p>
</td>
</tr>
<tr><td class="cellrowborder" valign="top" width="32.53%" headers="mcps1.3.4.2.4.2.1.2.2.2.3.1.1 "><p>数据库名称前缀</p>
</td>
<td class="cellrowborder" valign="top" width="67.47%" headers="mcps1.3.4.2.4.2.1.2.2.2.3.1.2 "><p><span style="color:#282B33;">恢复后数据库名称的前缀。数据库名称前缀和数据库名称后缀参数设置后，恢复后数据库名称格式为：</span><em style="color:#282B33;" id="exchange_0067__exchange_0067_i7466202720495">前缀_待恢复数据库名称_后缀</em><span style="color:#282B33;">。</span></p>
</td>
</tr>
<tr><td class="cellrowborder" valign="top" width="32.53%" headers="mcps1.3.4.2.4.2.1.2.2.2.3.1.1 "><p>数据库名称后缀</p>
</td>
<td class="cellrowborder" valign="top" width="67.47%" headers="mcps1.3.4.2.4.2.1.2.2.2.3.1.2 "><p><span style="color:#282B33;">恢复后数据库名称的后缀。数据库名称前缀和数据库名称后缀参数设置后，恢复后数据库名称格式为：</span><em style="color:#282B33;" id="exchange_0067__exchange_0067_i238292417491">前缀_待恢复数据库名称_后缀</em><span style="color:#282B33;">。</span></p>
</td>
</tr>
</tbody>
</table>
</div>
</li></ul>
</p></li><li><span>选择需要恢复的数据库，在<span class="uicontrol">“已选数据库”</span>区域可预览<span class="uicontrol">“恢复后数据库名称”</span>。</span></li><li><span>对于Exchange单机，可选择恢复的高级配置。</span><p><p>配置参数如<a href="#exchange_0067__table169114111874">表3</a>所示。</p>

<div class="tablenoborder"><a name="exchange_0067__table169114111874"></a><a name="table169114111874"></a><table cellpadding="4" cellspacing="0" summary="" id="exchange_0067__table169114111874" frame="border" border="1" rules="all"><caption><b>表3 </b>恢复Exchange单机高级配置参数</caption><colgroup><col style="width:32.53%"><col style="width:67.47%"></colgroup><thead align="left"><tr><th align="left" class="cellrowborder" valign="top" width="32.53%" id="mcps1.3.4.2.6.2.2.2.3.1.1"><p>参数</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="67.47%" id="mcps1.3.4.2.6.2.2.2.3.1.2"><p>说明</p>
</th>
</tr>
</thead>
<tbody><tr><td class="cellrowborder" valign="top" width="32.53%" headers="mcps1.3.4.2.6.2.2.2.3.1.1 "><p><span>恢复前执行脚本</span></p>
</td>
<td class="cellrowborder" rowspan="3" valign="top" width="67.47%" headers="mcps1.3.4.2.6.2.2.2.3.1.2 "><p>仅对于单机恢复，可以设置“<span>恢复前执行脚本</span>”、“<span>恢复成功执行脚本</span>”、“<span>恢复失败执行脚本</span>”。</p>
<div class="p" id="exchange_0067__p41104230711">您可根据实际情况，在恢复任务执行前、或恢复任务执行成功后、或恢复任务执行失败后，执行用户自定义的脚本，脚本类型为bat。若将脚本放置在DataBackup\ProtectClient\ProtectClient-E\bin\thirdparty目录下，则只需填写脚本名称，若将脚本放置在其他目录下，则需要填写脚本绝对路径。<div class="note" id="exchange_0067__note2110172314715"><span class="notetitle"> 说明： </span><div class="notebody"><p id="exchange_0067__p2011012319717">当配置了<span class="uicontrol" id="exchange_0067__uicontrol128133372811">“<span id="exchange_0067__text1081312373820">恢复成功执行脚本</span>”</span>时，即使该脚本执行失败，<span id="exchange_0067__text294017569311">OceanProtect</span>上也会显示恢复任务的状态为<span class="uicontrol" id="exchange_0067__uicontrol1181363711811">“<span id="exchange_0067__text14813103719816">成功</span>”</span>。请您留意任务详情中是否有后置脚本执行失败的相关提示，如有请及时修正脚本。</p>
</div></div>
</div>
</td>
</tr>
<tr><td class="cellrowborder" valign="top" headers="mcps1.3.4.2.6.2.2.2.3.1.1 "><p><span>恢复成功执行脚本</span></p>
</td>
</tr>
<tr><td class="cellrowborder" valign="top" headers="mcps1.3.4.2.6.2.2.2.3.1.1 "><p><span>恢复失败执行脚本</span></p>
</td>
</tr>
</tbody>
</table>
</div>
</p></li><li><span>单击<span class="uicontrol">“<span>确定</span>”</span>。</span></li></ol>
</div>
<div class="section" id="exchange_0067__section172810201150"><h4 class="sectiontitle">后续操作</h4><p id="exchange_0067__p88701326556">恢复后，需要在生产端更新用户邮箱状态，并创建新的Active Directory域用户与恢复后的邮箱建立连接，以验证恢复后的用户邮箱数据。具体操作请参考<a href="zh-cn_topic_0000001935299986.html">验证恢复后的用户邮箱数据（适用于Microsoft Exchange Server 2010）</a>或<a href="zh-cn_topic_0000001945406733.html">验证恢复后的用户邮箱数据（适用于Microsoft Exchange Server 2013及后续版本）</a>。</p>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>父主题：</strong> <a href="exchange_0061.html">恢复</a></div>
</div>
</div>

<div class="hrcopyright"><hr size="2"></div><div class="hwcopyright">版权所有 &copy; 华为技术有限公司</div></body>
</html>